<template>
	<view class="box">
		<view class="info">
			<text>发布内容</text>
		</view>
		<view class="floor">
			<uni-transition ref="ani" :show="show">
				<view class="tabbar">
					<view class="tabbar-item" @click="towork">
						<image src="../../static/release.png" mode="aspectFill"></image>
						<text>招募</text>
					</view>
					<view class="tabbar-item" @click="topic">
						<image src="../../static/video.png" mode="aspectFill"></image>
						<text>发视频</text>
					</view>
				</view>
			</uni-transition>
		</view>
	</view>
</template>

<script>
	import {
		store,
		mutations
	} from '@/uni_modules/uni-id-pages/common/store.js'
	export default {
		data() {
			return {
				show: false
			}
		},
		onShow() {
			this.show = true
			setTimeout(() => {
				this.uprun()
			}, 1000)
		},
		onHide() {
			this.show = false
		},
		methods: {
			//动画
			uprun() {
				this.$refs.ani.step({
					translateY: '-60rpx'


				}, {
					timingFunction: "ease",
					duration: 500
				})
				this.$refs.ani.run(() => {})
			},
			topic() {
				if (store.hasLogin) {
					uni.navigateTo({
						url: "/pages_video/artcile-item/artcile-item"
					})
				}else{
					uni.showToast({
						title:'未登录',
						icon:'none'
					})
				}

			},
			towork() {
				if (store.hasLogin) {
					uni.navigateTo({
						url: '/pages-other/recruitment/recruitment'
					})
				}else{
					uni.showToast({
						title:'未登录',
						icon:'none'
					})
				}

			}
		}
	}
</script>
<style >
	page{
		background: url("https://mp-ccffe9fb-6491-49ff-938f-e2f9c933dbd6.cdn.bspapp.com/backgroundImage/bg.jpg") no-repeat;
		background-size: 100% 100%;
		text-align: center;
	}
</style>
<style lang="scss" scoped>
	
	.box {
		height: 93vh;
	

		.info {
			color: white;
			font-size: 60rpx;
			position: fixed;
			right: 33vw;
			top: 30vh;
			font-family: '楷体';
			
		}

		.floor {
			box-shadow: 0 0 0 100vh rgba(0, 0, 0, 0.7);
			position: relative;

			.tabbar {
				position: absolute;
				display: flex;
				width: 100vw;
				justify-content: space-around;
				bottom: -90vh;

				image {
					width: 100rpx;
					height: 100rpx;
				}

				.tabbar-item {
					color: #fff;
					font-family: 'YouYuan';
					display: flex;
					flex-direction: column;
					justify-content: center;
					align-items: center;
				}
			}
		}
	}
</style>